diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-06-27 20:58:04 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-06-27 20:58:04 +0100 |
| commit | 4756442250b7beecee6dbda36820a9fbdf6aea45 (patch) | |
| tree | 5af1afefd6af155bec4561741a49cb7e08bd340b /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 88449ac17bf7aad429eb588ec19a0a29d5d90ed4 (diff) | |
Store function pointer in closure
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 7 insertions, 3 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected index 8ef7bbc3..e0f30646 100644 --- a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.wasm.WasmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -15,7 +15,7 @@ Function[2]: - func[2] sig=1 <f> Code[2]: - func[1] size=5 <shed__function__f__0> - - func[2] size=16 <f> + - func[2] size=27 <f> Custom: - name: "name" - func[0] <shed__runtime__alloc> @@ -31,8 +31,9 @@ Custom: - 2: F <f> func=2 [ binding=global vis=default ] Custom: - name: "reloc.CODE" - - relocations for section: 3 (Code) [1] + - relocations for section: 3 (Code) [2] - R_WASM_FUNCTION_INDEX_LEB offset=0x000016(file=0x000097) symbol=0 <shed__runtime__alloc> + - R_WASM_TABLE_INDEX_SLEB offset=0x000020(file=0x0000a1) symbol=1 <shed__function__f__0> Code Disassembly: @@ -46,4 +47,7 @@ Code Disassembly: 000096: 10 80 80 80 80 00 | call 0 <shed__runtime__alloc> 00009c: 21 00 | local.set 0 <closurePointer__0> 00009e: 20 00 | local.get 0 <closurePointer__0> - 0000a0: 0b | end
\ No newline at end of file + 0000a0: 41 80 80 80 80 00 | i32.const 0 + 0000a6: 36 02 00 | i32.store 2 0 + 0000a9: 20 00 | local.get 0 <closurePointer__0> + 0000ab: 0b | end
\ No newline at end of file |
